<?php //$Rev:: 3          $ // DO NOT REMOVE

error_reporting(E_ALL);

/**
 * ATACException: catches errors and throws display()
 * 
 * @author Andrew Heebner <andrew@evilwalrus.com> 
 * @version $Revision: 3 $
 * @require PHP 5.0
 */
class ATACException extends Exception
{

    private $exception = '';

	/**
	 * __construct: Initializes variables
	 * 
	 * @param string $exception (optional) Exception text to send to console
	 * @access public 
	 * @return void 
	 */
    public function __construct($exception = 'Unknown Error')
    {
        $this->exception = $exception;
	} 

	/**
	 * display: Dies on exception instance
	 * 
	 * @access public 
	 * @return void 
	 * @proto void display(void)
	 */
	public function display()
	{
        $msg = '[EXIT - ' . date('m/d/y @ h:i:sA', time()) . ']:  An ATACException occured (' . $this->exception . ")\n";
		die("\n" . $msg . "\n");
	}

} // End ATACException

?>